import request from '/@/utils/request';
/**
 *
 * 系统用户接口
 * @method getUserInfoList 获取用户信息列表
 */
export function systemRoleApi() {
    return {
        getRolePage: (data: object) => {
            return request({
                url: '/user/systemRole/getPage',
                method: 'get',
                params: data,
            });
        },
        getRoleList: (data: object) => {
            return request({
                url: '/user/systemRole/getList',
                method: 'get',
                params: data,
            });
        },
        addOrUpdateRole:(data: object) =>{
            return request({
                url: '/user/systemRole/addOrUpdateRole',
                method: 'post',
                data,
            });
        },
        delRole: (data: number) =>{
            return request({
                url: '/user/systemRole/delRole/' + data,
                method: 'delete'
            });
        }
    };
}